package com.ysy.api;

import com.ysy.dto.NoteContentDTO;
import com.ysy.persimmons.common.response.Response;
import jakarta.annotation.Resource;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "NoteContentFeignApi",value = "kv")
public interface NoteContentFeignApi {


    @PostMapping("/note/select")
    public Response<NoteContentDTO> selectNoteContent(@RequestBody NoteContentDTO noteContentDTO);

    @PostMapping("/note/add")
    public Response<?> addNoteContent(@RequestBody NoteContentDTO noteContentDTO);

    @PostMapping("/note/del")
    public Response<?> delNoteContent(@RequestBody NoteContentDTO noteContentDTO);

    @PostMapping("/note/update")
    public Response<?> updateNoteContent(@RequestBody NoteContentDTO noteContentDTO);
}
